package com.atomscat.lottery.entity.db;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;

@Setter
@Getter
@Entity(name = "lottery_prize")
@Schema
public class LotteryPrizeEntity extends Auditable<UserEntity, Long> implements Serializable {

    // prize_name
    private String prizeName;

    // prize_type
    /**
     * 1. Cash,
     * 2. Coupon,
     * 3. Product,
     * 4. Service
     */
    private String prizeType;

    private String description;

    // prize_quantity
    private Integer prizeQuantity;

    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "activity_id")
    private LotteryActivityEntity lotteryActivity;
}
